/**
 * 
 */
package com.orange.handler.expert.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.expert.AuthIinspectionOpinionsService;
import com.orange.modules.dao.expert.AuthIinspectionOpinionsRepository;
import com.orange.modules.entity.expert.AuthIinspectionOpinions;

/**
 * @author gaogs
 *
 * 2016-12-5
 */
@Service
public class AuthIinspectionOpinionsServiceImpl implements
		AuthIinspectionOpinionsService {

	@Autowired
	private AuthIinspectionOpinionsRepository authIinspectionOpinionsRepository;
	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthIinspectionOpinionsService#saveAuthIinspectionOpinionsInfo(java.util.List)
	 */
	@Override
	public void saveAuthIinspectionOpinionsInfo(
			List<AuthIinspectionOpinions> list) {
		authIinspectionOpinionsRepository.saveAuthIinspectionOpinionsInfo(list);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthIinspectionOpinionsService#queryAuthIinspectionOpinionsLists(java.lang.String, java.lang.String, java.lang.String)
	 */
	@Override
	public List<AuthIinspectionOpinions> queryAuthIinspectionOpinionsLists(
			String groupId, String itemId, String expertId) throws SQLException {
		List<AuthIinspectionOpinions> ls=authIinspectionOpinionsRepository.queryAuthIinspectionOpinionsLists(groupId, itemId, expertId);
		return ls;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthIinspectionOpinionsService#deleteAuthIinspectionOpinionss(java.lang.String, java.lang.String, java.lang.String)
	 */
	@Override
	public void deleteAuthIinspectionOpinionss(String groupId, String itemId,
			String expertId) throws SQLException {
		authIinspectionOpinionsRepository.deleteAuthIinspectionOpinionss(groupId, itemId, expertId);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthIinspectionOpinionsService#queryAuthIinspectionOpinionsLists(java.lang.String, java.lang.String)
	 */
	@Override
	public AuthIinspectionOpinions queryAuthIinspectionOpinionsLists(
			String groupId, String expertId) throws SQLException {
		AuthIinspectionOpinions a=authIinspectionOpinionsRepository.queryAuthIinspectionOpinionsLists(groupId, expertId);
		return a;
	}

	@Override
	public List<AuthIinspectionOpinions> queryAuthIinspectionOpinions(
			String groupId, String itemId) throws SQLException {
		List<AuthIinspectionOpinions> list = authIinspectionOpinionsRepository.queryAuthIinspectionOpinions(groupId, itemId);
		return list;
	}

}
